<template>
  <a-spin :spinning="confirmLoading">
    <JFormContainer :disabled="disabled">
      <template #detail>
        <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="LkdSysUserForm">
          <a-row>
						<a-col :span="24">
							<a-form-item label="手机" v-bind="validateInfos.mobile" id="LkdSysUserForm-mobile" name="mobile">
								<a-input v-model:value="formData.mobile" placeholder="请输入手机"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="密码" v-bind="validateInfos.password" id="LkdSysUserForm-password" name="password">
								<a-input v-model:value="formData.password" placeholder="请输入密码"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="登录名" v-bind="validateInfos.username" id="LkdSysUserForm-username" name="username">
								<a-input v-model:value="formData.username" placeholder="请输入登录名"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="归属公司" v-bind="validateInfos.companyId" id="LkdSysUserForm-companyId" name="companyId">
								<a-input v-model:value="formData.companyId" placeholder="请输入归属公司"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="归属部门" v-bind="validateInfos.officeId" id="LkdSysUserForm-officeId" name="officeId">
								<a-input v-model:value="formData.officeId" placeholder="请输入归属部门"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="身份证号" v-bind="validateInfos.no" id="LkdSysUserForm-no" name="no">
								<a-input v-model:value="formData.no" placeholder="请输入身份证号"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="姓名" v-bind="validateInfos.name" id="LkdSysUserForm-name" name="name">
								<a-input v-model:value="formData.name" placeholder="请输入姓名"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="性别（字典gender）" v-bind="validateInfos.gender" id="LkdSysUserForm-gender" name="gender">
								<a-input v-model:value="formData.gender" placeholder="请输入性别（字典gender）"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="出生日期" v-bind="validateInfos.birthday" id="LkdSysUserForm-birthday" name="birthday">
								<a-input v-model:value="formData.birthday" placeholder="请输入出生日期"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="邮箱" v-bind="validateInfos.email" id="LkdSysUserForm-email" name="email">
								<a-input v-model:value="formData.email" placeholder="请输入邮箱"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="电话" v-bind="validateInfos.phone" id="LkdSysUserForm-phone" name="phone">
								<a-input v-model:value="formData.phone" placeholder="请输入电话"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="用户类型:2,用户;3,商户;4,技师;" v-bind="validateInfos.userType" id="LkdSysUserForm-userType" name="userType">
								<a-input v-model:value="formData.userType" placeholder="请输入用户类型:2,用户;3,商户;4,技师;"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="真人照片" v-bind="validateInfos.photo" id="LkdSysUserForm-photo" name="photo">
								<a-input v-model:value="formData.photo" placeholder="请输入真人照片"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="最后登陆IP" v-bind="validateInfos.loginIp" id="LkdSysUserForm-loginIp" name="loginIp">
								<a-input v-model:value="formData.loginIp" placeholder="请输入最后登陆IP"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="最后登陆时间" v-bind="validateInfos.loginDate" id="LkdSysUserForm-loginDate" name="loginDate">
								<a-date-picker placeholder="请选择最后登陆时间"  v-model:value="formData.loginDate" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%"  allow-clear />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="是否可登录" v-bind="validateInfos.loginFlag" id="LkdSysUserForm-loginFlag" name="loginFlag">
								<a-input v-model:value="formData.loginFlag" placeholder="请输入是否可登录"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="创建时间" v-bind="validateInfos.createDate" id="LkdSysUserForm-createDate" name="createDate">
								<a-date-picker placeholder="请选择创建时间"  v-model:value="formData.createDate" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%"  allow-clear />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="更新时间" v-bind="validateInfos.updateDate" id="LkdSysUserForm-updateDate" name="updateDate">
								<a-date-picker placeholder="请选择更新时间"  v-model:value="formData.updateDate" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%"  allow-clear />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="备注信息" v-bind="validateInfos.remarks" id="LkdSysUserForm-remarks" name="remarks">
								<a-input v-model:value="formData.remarks" placeholder="请输入备注信息"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="umengToken" v-bind="validateInfos.umengToken" id="LkdSysUserForm-umengToken" name="umengToken">
								<a-input v-model:value="formData.umengToken" placeholder="请输入umengToken"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="rongcloudToken" v-bind="validateInfos.rongcloudToken" id="LkdSysUserForm-rongcloudToken" name="rongcloudToken">
								<a-input v-model:value="formData.rongcloudToken" placeholder="请输入rongcloudToken"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="推荐" v-bind="validateInfos.promoted" id="LkdSysUserForm-promoted" name="promoted">
								<a-input-number v-model:value="formData.promoted" placeholder="请输入推荐" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="promotedToday" v-bind="validateInfos.promotedToday" id="LkdSysUserForm-promotedToday" name="promotedToday">
								<a-input-number v-model:value="formData.promotedToday" placeholder="请输入promotedToday" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="好评推荐" v-bind="validateInfos.promotedPoint" id="LkdSysUserForm-promotedPoint" name="promotedPoint">
								<a-input-number v-model:value="formData.promotedPoint" placeholder="请输入好评推荐" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="头像" v-bind="validateInfos.avatar" id="LkdSysUserForm-avatar" name="avatar">
								<a-input v-model:value="formData.avatar" placeholder="请输入头像"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="realPercent" v-bind="validateInfos.realPercent" id="LkdSysUserForm-realPercent" name="realPercent">
								<a-input-number v-model:value="formData.realPercent" placeholder="请输入realPercent" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="昵称" v-bind="validateInfos.nickname" id="LkdSysUserForm-nickname" name="nickname">
								<a-input v-model:value="formData.nickname" placeholder="请输入昵称"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="身份证_头像" v-bind="validateInfos.idcard1" id="LkdSysUserForm-idcard1" name="idcard1">
								<a-input v-model:value="formData.idcard1" placeholder="请输入身份证_头像"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="身份证_国徽" v-bind="validateInfos.idcard2" id="LkdSysUserForm-idcard2" name="idcard2">
								<a-input v-model:value="formData.idcard2" placeholder="请输入身份证_国徽"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="相册" v-bind="validateInfos.album" id="LkdSysUserForm-album" name="album">
								<a-input v-model:value="formData.album" placeholder="请输入相册"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="实名状态（0：未认证，1：审核中，2：通过，3：未通过）" v-bind="validateInfos.realnameStatus" id="LkdSysUserForm-realnameStatus" name="realnameStatus">
								<a-input-number v-model:value="formData.realnameStatus" placeholder="请输入实名状态（0：未认证，1：审核中，2：通过，3：未通过）" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="自我介绍" v-bind="validateInfos.introduction" id="LkdSysUserForm-introduction" name="introduction">
								<a-input v-model:value="formData.introduction" placeholder="请输入自我介绍"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="标签" v-bind="validateInfos.tag" id="LkdSysUserForm-tag" name="tag">
								<a-input v-model:value="formData.tag" placeholder="请输入标签"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="位置" v-bind="validateInfos.position" id="LkdSysUserForm-position" name="position">
								<a-input v-model:value="formData.position" placeholder="请输入位置"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="定位名称" v-bind="validateInfos.positionName" id="LkdSysUserForm-positionName" name="positionName">
								<a-input v-model:value="formData.positionName" placeholder="请输入定位名称"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="职称（字典：job_title）" v-bind="validateInfos.jobTitle" id="LkdSysUserForm-jobTitle" name="jobTitle">
								<a-input v-model:value="formData.jobTitle" placeholder="请输入职称（字典：job_title）"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="订单数量" v-bind="validateInfos.orderNumber" id="LkdSysUserForm-orderNumber" name="orderNumber">
								<a-input-number v-model:value="formData.orderNumber" placeholder="请输入订单数量" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="取消订单数" v-bind="validateInfos.cancelNumber" id="LkdSysUserForm-cancelNumber" name="cancelNumber">
								<a-input-number v-model:value="formData.cancelNumber" placeholder="请输入取消订单数" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="归属区域" v-bind="validateInfos.area" id="LkdSysUserForm-area" name="area">
								<a-input v-model:value="formData.area" placeholder="请输入归属区域"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="余额" v-bind="validateInfos.balance" id="LkdSysUserForm-balance" name="balance">
								<a-input-number v-model:value="formData.balance" placeholder="请输入余额" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="新加入商户审核状态（0：尚未审核，1：通过，-1：未通过）" v-bind="validateInfos.newStatus" id="LkdSysUserForm-newStatus" name="newStatus">
								<a-input-number v-model:value="formData.newStatus" placeholder="请输入新加入商户审核状态（0：尚未审核，1：通过，-1：未通过）" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="newDate" v-bind="validateInfos.newDate" id="LkdSysUserForm-newDate" name="newDate">
								<a-date-picker placeholder="请选择newDate"  v-model:value="formData.newDate" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%"  allow-clear />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="channel" v-bind="validateInfos.channel" id="LkdSysUserForm-channel" name="channel">
								<a-input v-model:value="formData.channel" placeholder="请输入channel"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="openid" v-bind="validateInfos.openid" id="LkdSysUserForm-openid" name="openid">
								<a-input v-model:value="formData.openid" placeholder="请输入openid"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="open2id" v-bind="validateInfos.open2id" id="LkdSysUserForm-open2id" name="open2id">
								<a-input v-model:value="formData.open2id" placeholder="请输入open2id"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="referrer1" v-bind="validateInfos.referrer1" id="LkdSysUserForm-referrer1" name="referrer1">
								<a-input v-model:value="formData.referrer1" placeholder="请输入referrer1"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="referrer2" v-bind="validateInfos.referrer2" id="LkdSysUserForm-referrer2" name="referrer2">
								<a-input v-model:value="formData.referrer2" placeholder="请输入referrer2"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="服务类型（0:技师上门，1：到店服务，2：两者皆可）" v-bind="validateInfos.serviceType" id="LkdSysUserForm-serviceType" name="serviceType">
								<a-input-number v-model:value="formData.serviceType" placeholder="请输入服务类型（0:技师上门，1：到店服务，2：两者皆可）" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="推广余额" v-bind="validateInfos.shareBalance" id="LkdSysUserForm-shareBalance" name="shareBalance">
								<a-input-number v-model:value="formData.shareBalance" placeholder="请输入推广余额" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="shareReward" v-bind="validateInfos.shareReward" id="LkdSysUserForm-shareReward" name="shareReward">
								<a-input-number v-model:value="formData.shareReward" placeholder="请输入shareReward" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="certificate" v-bind="validateInfos.certificate" id="LkdSysUserForm-certificate" name="certificate">
								<a-input v-model:value="formData.certificate" placeholder="请输入certificate"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="certificateStatus" v-bind="validateInfos.certificateStatus" id="LkdSysUserForm-certificateStatus" name="certificateStatus">
								<a-input-number v-model:value="formData.certificateStatus" placeholder="请输入certificateStatus" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="certificateStatusRemarks" v-bind="validateInfos.certificateStatusRemarks" id="LkdSysUserForm-certificateStatusRemarks" name="certificateStatusRemarks">
								<a-input v-model:value="formData.certificateStatusRemarks" placeholder="请输入certificateStatusRemarks"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="video" v-bind="validateInfos.video" id="LkdSysUserForm-video" name="video">
								<a-input v-model:value="formData.video" placeholder="请输入video"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="videoStatus" v-bind="validateInfos.videoStatus" id="LkdSysUserForm-videoStatus" name="videoStatus">
								<a-input-number v-model:value="formData.videoStatus" placeholder="请输入videoStatus" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="disclaimer" v-bind="validateInfos.disclaimer" id="LkdSysUserForm-disclaimer" name="disclaimer">
								<a-input v-model:value="formData.disclaimer" placeholder="请输入disclaimer"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="disclaimerStatus" v-bind="validateInfos.disclaimerStatus" id="LkdSysUserForm-disclaimerStatus" name="disclaimerStatus">
								<a-input-number v-model:value="formData.disclaimerStatus" placeholder="请输入disclaimerStatus" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="wx" v-bind="validateInfos.wx" id="LkdSysUserForm-wx" name="wx">
								<a-input v-model:value="formData.wx" placeholder="请输入wx"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="个人资料审核状态" v-bind="validateInfos.infoStatus" id="LkdSysUserForm-infoStatus" name="infoStatus">
								<a-input-number v-model:value="formData.infoStatus" placeholder="请输入个人资料审核状态" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="orderBalance" v-bind="validateInfos.orderBalance" id="LkdSysUserForm-orderBalance" name="orderBalance">
								<a-input-number v-model:value="formData.orderBalance" placeholder="请输入orderBalance" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="blockedBalance" v-bind="validateInfos.blockedBalance" id="LkdSysUserForm-blockedBalance" name="blockedBalance">
								<a-input-number v-model:value="formData.blockedBalance" placeholder="请输入blockedBalance" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="orderBalanceAll" v-bind="validateInfos.orderBalanceAll" id="LkdSysUserForm-orderBalanceAll" name="orderBalanceAll">
								<a-input-number v-model:value="formData.orderBalanceAll" placeholder="请输入orderBalanceAll" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="pointSum" v-bind="validateInfos.pointSum" id="LkdSysUserForm-pointSum" name="pointSum">
								<a-input-number v-model:value="formData.pointSum" placeholder="请输入pointSum" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="pointAvg" v-bind="validateInfos.pointAvg" id="LkdSysUserForm-pointAvg" name="pointAvg">
								<a-input-number v-model:value="formData.pointAvg" placeholder="请输入pointAvg" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="realStatus" v-bind="validateInfos.realStatus" id="LkdSysUserForm-realStatus" name="realStatus">
								<a-input-number v-model:value="formData.realStatus" placeholder="请输入realStatus" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="营业状态：1-营业，2-休息" v-bind="validateInfos.businessStatus" id="LkdSysUserForm-businessStatus" name="businessStatus">
								<a-input-number v-model:value="formData.businessStatus" placeholder="请输入营业状态：1-营业，2-休息" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="苹果唯一性ID" v-bind="validateInfos.appleid" id="LkdSysUserForm-appleid" name="appleid">
								<a-input v-model:value="formData.appleid" placeholder="请输入苹果唯一性ID"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="是否允许登录说明" v-bind="validateInfos.loginFlagRemarks" id="LkdSysUserForm-loginFlagRemarks" name="loginFlagRemarks">
								<a-input v-model:value="formData.loginFlagRemarks" placeholder="请输入是否允许登录说明"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="工号" v-bind="validateInfos.workNo" id="LkdSysUserForm-workNo" name="workNo">
								<a-input v-model:value="formData.workNo" placeholder="请输入工号"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="trueOrderNumber" v-bind="validateInfos.trueOrderNumber" id="LkdSysUserForm-trueOrderNumber" name="trueOrderNumber">
								<a-input-number v-model:value="formData.trueOrderNumber" placeholder="请输入trueOrderNumber" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="consumeAmount" v-bind="validateInfos.consumeAmount" id="LkdSysUserForm-consumeAmount" name="consumeAmount">
								<a-input-number v-model:value="formData.consumeAmount" placeholder="请输入consumeAmount" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="身高" v-bind="validateInfos.height" id="LkdSysUserForm-height" name="height">
								<a-input-number v-model:value="formData.height" placeholder="请输入身高" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="体重" v-bind="validateInfos.weight" id="LkdSysUserForm-weight" name="weight">
								<a-input-number v-model:value="formData.weight" placeholder="请输入体重" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="年龄" v-bind="validateInfos.age" id="LkdSysUserForm-age" name="age">
								<a-input-number v-model:value="formData.age" placeholder="请输入年龄" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="工作年限" v-bind="validateInfos.experience" id="LkdSysUserForm-experience" name="experience">
								<a-input-number v-model:value="formData.experience" placeholder="请输入工作年限" style="width: 100%" />
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="微信openid" v-bind="validateInfos.wxOpenId" id="LkdSysUserForm-wxOpenId" name="wxOpenId">
								<a-input v-model:value="formData.wxOpenId" placeholder="请输入微信openid"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="微信昵称" v-bind="validateInfos.wxNickname" id="LkdSysUserForm-wxNickname" name="wxNickname">
								<a-input v-model:value="formData.wxNickname" placeholder="请输入微信昵称"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
						<a-col :span="24">
							<a-form-item label="微信头像" v-bind="validateInfos.wxPortrait" id="LkdSysUserForm-wxPortrait" name="wxPortrait">
								<a-input v-model:value="formData.wxPortrait" placeholder="请输入微信头像"  allow-clear ></a-input>
							</a-form-item>
						</a-col>
          </a-row>
        </a-form>
      </template>
    </JFormContainer>
  </a-spin>
</template>

<script lang="ts" setup>
  import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
  import { defHttp } from '/@/utils/http/axios';
  import { useMessage } from '/@/hooks/web/useMessage';
  import { getValueType } from '/@/utils';
  import { saveOrUpdate } from '../LkdSysUser.api';
  import { Form } from 'ant-design-vue';
  import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
  const props = defineProps({
    formDisabled: { type: Boolean, default: false },
    formData: { type: Object, default: () => ({})},
    formBpm: { type: Boolean, default: true }
  });
  const formRef = ref();
  const useForm = Form.useForm;
  const emit = defineEmits(['register', 'ok']);
  const formData = reactive<Record<string, any>>({
    id: '',
    mobile: '',   
    password: '',   
    username: '',   
    companyId: '',   
    officeId: '',   
    no: '',   
    name: '',   
    gender: '',   
    birthday: '',   
    email: '',   
    phone: '',   
    userType: '',   
    photo: '',   
    loginIp: '',   
    loginDate: '',   
    loginFlag: '',   
    createDate: '',   
    updateDate: '',   
    remarks: '',   
    delFlag: '',   
    umengToken: '',   
    rongcloudToken: '',   
    promoted: undefined,
    promotedToday: undefined,
    promotedPoint: undefined,
    avatar: '',   
    realPercent: undefined,
    nickname: '',   
    idcard1: '',   
    idcard2: '',   
    album: '',   
    realnameStatus: undefined,
    introduction: '',   
    tag: '',   
    position: '',   
    positionName: '',   
    jobTitle: '',   
    orderNumber: undefined,
    cancelNumber: undefined,
    area: '',   
    balance: undefined,
    newStatus: undefined,
    newDate: '',   
    channel: '',   
    openid: '',   
    open2id: '',   
    referrer1: '',   
    referrer2: '',   
    serviceType: undefined,
    shareBalance: undefined,
    shareReward: undefined,
    certificate: '',   
    certificateStatus: undefined,
    certificateStatusRemarks: '',   
    video: '',   
    videoStatus: undefined,
    disclaimer: '',   
    disclaimerStatus: undefined,
    wx: '',   
    infoStatus: undefined,
    orderBalance: undefined,
    blockedBalance: undefined,
    orderBalanceAll: undefined,
    pointSum: undefined,
    pointAvg: undefined,
    realStatus: undefined,
    businessStatus: undefined,
    appleid: '',   
    loginFlagRemarks: '',   
    workNo: '',   
    trueOrderNumber: undefined,
    consumeAmount: undefined,
    height: undefined,
    weight: undefined,
    age: undefined,
    experience: undefined,
    wxOpenId: '',   
    wxNickname: '',   
    wxPortrait: '',   
  });
  const { createMessage } = useMessage();
  const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
  const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
  const confirmLoading = ref<boolean>(false);
  //表单验证
  const validatorRules = reactive({
    password: [{ required: true, message: '请输入密码!'},],
    username: [{ required: true, message: '请输入登录名!'},],
    createDate: [{ required: true, message: '请输入创建时间!'},],
    updateDate: [{ required: true, message: '请输入更新时间!'},],
    delFlag: [{ required: true, message: '请输入删除标记!'},],
    promoted: [{ required: true, message: '请输入推荐!'},],
    promotedToday: [{ required: true, message: '请输入promotedToday!'},],
    promotedPoint: [{ required: true, message: '请输入好评推荐!'},],
    shareBalance: [{ required: true, message: '请输入推广余额!'},],
    shareReward: [{ required: true, message: '请输入shareReward!'},],
    infoStatus: [{ required: true, message: '请输入个人资料审核状态!'},],
    realStatus: [{ required: true, message: '请输入realStatus!'},],
    trueOrderNumber: [{ required: true, message: '请输入trueOrderNumber!'},],
    consumeAmount: [{ required: true, message: '请输入consumeAmount!'},],
    wxOpenId: [{ required: true, message: '请输入微信openid!'},],
  });
  const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });

  // 表单禁用
  const disabled = computed(()=>{
    if(props.formBpm === true){
      if(props.formData.disabled === false){
        return false;
      }else{
        return true;
      }
    }
    return props.formDisabled;
  });

  
  /**
   * 新增
   */
  function add() {
    edit({});
  }

  /**
   * 编辑
   */
  function edit(record) {
    nextTick(() => {
      resetFields();
      const tmpData = {};
      Object.keys(formData).forEach((key) => {
        if(record.hasOwnProperty(key)){
          tmpData[key] = record[key]
        }
      })
      //赋值
      Object.assign(formData, tmpData);
    });
  }

  /**
   * 提交数据
   */
  async function submitForm() {
    try {
      // 触发表单验证
      await validate();
    } catch ({ errorFields }) {
      if (errorFields) {
        const firstField = errorFields[0];
        if (firstField) {
          formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
        }
      }
      return Promise.reject(errorFields);
    }
    confirmLoading.value = true;
    const isUpdate = ref<boolean>(false);
    //时间格式化
    let model = formData;
    if (model.id) {
      isUpdate.value = true;
    }
    //循环数据
    for (let data in model) {
      //如果该数据是数组并且是字符串类型
      if (model[data] instanceof Array) {
        let valueType = getValueType(formRef.value.getProps, data);
        //如果是字符串类型的需要变成以逗号分割的字符串
        if (valueType === 'string') {
          model[data] = model[data].join(',');
        }
      }
    }
    await saveOrUpdate(model, isUpdate.value)
      .then((res) => {
        if (res.success) {
          createMessage.success(res.message);
          emit('ok');
        } else {
          createMessage.warning(res.message);
        }
      })
      .finally(() => {
        confirmLoading.value = false;
      });
  }


  defineExpose({
    add,
    edit,
    submitForm,
  });
</script>

<style lang="less" scoped>
  .antd-modal-form {
    padding: 14px;
  }
</style>
